package com.server.questionbank.snframe.service;


import com.server.questionbank.snframe.domain.TCollection;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TCollectionService {
    // 查询收藏记录
    public TCollection selectCollection(Long userId, Long targetId, String targetType);
    public List<TCollection> selectCollection(Long userId, String targetType);
    public List<TCollection> selectCollection(Long userId);
    public TCollection selectCollectionById(Long collectionId);

    // 添加收藏
    public Integer insertCollection(Long userId, Long targetId, String targetType);
    // 删除收藏
    public Integer deleteCollection(Long collectionId);

}
